/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ru.jSkyRoom.manager.phase;

import java.io.IOException;
import ru.jSkyRoom.manager.ModImporter;
import skyproc.GRUP_TYPE;
import skyproc.SPImporter;
import skyproc.exceptions.BadMod;
import skyproc.exceptions.MissingMaster;

/**
 *
 * @author Rakev
 */
public class ImportingModPhase {

    public ImportingModPhase() {
    }

    public ImportingModPhase importMod(String importingMod, GRUP_TYPE... grupTargets) throws BadMod, MissingMaster {
        getModImporter().importMod(importingMod, grupTargets);
        return this;
    }

    public ImportingModPhase importActiveMods(GRUP_TYPE... grupTargets) throws IOException, MissingMaster {
        getModImporter().importActiveMods(grupTargets);
        return this;
    }

    public void importAllMods(GRUP_TYPE... grupTargets) throws IOException, MissingMaster {
        SPImporter.importAllMods(grupTargets);
    }

    protected ModImporter getModImporter() {
        return ModImporter.getInstance();
    }
}
